package com.luo.bbs.front.webapi.controller;

import com.example.bbs.front.service.IRepairService;
import com.luo.common.restful.JsonResult;
import com.luo.pojo.Repair;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@RequestMapping("/repair")
public class RepairController {
    @Autowired
    private IRepairService repairService;

    @PostMapping("/add")
    public JsonResult addNew(Repair repair){
        repairService.addNew(repair);
        return JsonResult.ok();
    }

}
